<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			
		</style>
	</head>
	<body>
		<div id="app">
			<span>{{msg}}</span>
			<!-- 修饰符 -->
			<input type="text" @keydown.enter.stop="down" v-model.lazy.trim="msg" />
			
			<button type="button" @click="fn" >按钮</button>
			<input type="number" v-model.number="num" />
		</div>
	</body>
	<script src="../vue.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
			
		new Vue({
			el:"#app",
			data:{
				msg:"",
				num:0
			},
			methods:{
				fn(){
					console.log(1);
				},
				down(){
					console.log(1);
				}
			}
		})
		
	</script>
</html>
